-- msg_notify_sc_activity_result
-- Create by chendh Aug/22/2016
-- 服务器通知天空活动参与结果

return function(lpc)
    local result = lpc.result;
    local extraData = lpc.extra_data;

    local attackerInfo = result.attacker;
    local defenserInfo = result.defenser;
    local record = result.record;
    local bonus = result.bonus;

    -- 创建一个战场
    SkyCombatM.createBattle(attackerInfo, defenserInfo, result.result, record, bonus, extraData);

    -- 抛出事件
    EventMgr.fire(event.SKY_ACTIVITY_RESULT, {
        ["result"] = result,
        ["extra_data"]  = extraData,
    });
end
